package io.kiki.sba.registry.common.model.wrapper;


public interface WrapperInterceptor<T, R> {

    /**
     * invoke inside function
     *
     * @param wrapperInvocation invocation
     * @return R
     * @throws Exception exception
     */
    R invokeCodeWrapper(WrapperInvocation<T, R> wrapperInvocation) throws Exception;

    /**
     * Interceptor order
     *
     * @return int
     */
    int getOrder();
}
